<?php /*a:1:{s:67:"/www/wwwroot/qt.feifeiyu.club/app/admin/view/member/member_edit.vue";i:1690956160;}*/ ?>
<div class="el-dialog">
    <header class="el-dialog__header">
        <span  class="el-dialog__title">修改用户</span>
        <button  data-bs-dismiss="modal" aria-label="Close" class="el-dialog__headerbtn" type="button">
            <i class="el-icon el-dialog__close">
                <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
                    <path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path>
                </svg>
            </i>
        </button>
    </header>
    <!--顶部-->
     <form method="post" onsubmit="return post_add(this,'<?php echo url('edit'); ?>')">
    <div class="el-dialog__body">
        <!--内容-->
       <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">用户名</label>
            <div class="col-sm-10">
              <input type="text" name="username" value="<?php echo htmlentities($find['username']); ?>" disabled="" class="form-control" placeholder="请输入用户名">
            </div>
          </div>   
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">会员组</label>
            <div class="col-sm-10">
              <select class="form-select" name="groupid" aria-label="请选择会员组">
                    <?php if(is_array($group) || $group instanceof \think\Collection || $group instanceof \think\Paginator): $i = 0; $__LIST__ = $group;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <option  value="<?php echo htmlentities($vo['groupid']); ?>" <?php echo $find['groupid']==$vo['groupid'] ? 'selected' : ''; ?>><?php echo htmlentities($vo['name']); ?></option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </div>
          </div> 
         
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">密码</label>
            <div class="col-sm-10">
              <input type="password" name="password" class="form-control" placeholder="请输入密码">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">昵称</label>
            <div class="col-sm-10">
              <input type="text" name="nickname" value="<?php echo htmlentities($find['nickname']); ?>" class="form-control" placeholder="请输入昵称">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">邮箱</label>
            <div class="col-sm-10">
              <input type="text" name="email" value="<?php echo htmlentities($find['email']); ?>" class="form-control" placeholder="请输入站长邮箱">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">时间</label>
            <div class="input-group" style="width: 83%;">
              <div class="input-group-text">
                <input class="form-check-input mt-0" type="radio" name="vip" value="1" <?php echo !empty($find['vip']) ? 'checked'  : ''; ?>>
                <label style="font-size: 12px;">开启</label>
                
              </div>
              <div class="input-group-text">
                <input class="form-check-input mt-0" type="radio" name="vip" value="0"  <?php echo !empty($find['vip']) ? ''  : 'checked'; ?>>
               <label style="font-size: 12px;">关闭</label>
              </div>
              <input type="text" name="overduedate" value="<?php echo date("Y-m-d H:i:s",$find['overduedate']); ?>" id="overduedate" class="form-control" placeholder="请输入入过期时间">
            </div>
            
          </div> 
          
           <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">状态</label>
            <div class="col-sm-10">
              <select class="form-select" name="status" aria-label="请选择会员状态">
              <option  value="1" <?php echo $find['status']==1 ? 'selected' : ''; ?>>正常</option>
              <option  value="0" <?php echo $find['status']==0 ? 'selected' : ''; ?>>待审核</option>
              <option  value="2" <?php echo $find['status']==2 ? 'selected' : ''; ?>>锁定</option>
              <option  value="3" <?php echo $find['status']==3 ? 'selected' : ''; ?>>拒绝</option>
              </select>
            </div>
          </div> 
          <input type="hidden" name="__token__" value="<?php echo token(); ?>" />
          <input type="hidden" name="userid" value="<?php echo htmlentities($find['userid']); ?>" />
         <!--内容-->
    </div>
    <!--底部-->
    <footer class="el-dialog__footer">
        <span class="dialog-footer">
            <button  type="button" class="el-button el-button--danger" data-bs-dismiss="modal" aria-label="Close">
                <span class="">取消</span></button>
            <button class="el-button el-button--primary" aria-disabled="false" type="submit">
                <span class="">确认</span></button>
        </span>
    </footer>
    </form>
</div>
<script>
layui.use(function(){
  var laydate = layui.laydate;
  // 日期时间选择器 - 日期和时间选择器同时显示（全面板）
  laydate.render({
    elem: '#overduedate',
    type: 'datetime',
   });
 });
</script>